﻿#include "setupwindow.h"
#include "ui_setupwindow.h"
#include <QtDebug>

SetUpWindow::SetUpWindow(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::SetUpWindow)
{
    ui->setupUi(this);

    this->setAttribute(Qt::WA_QuitOnClose,false);

    ui->le_listenport->setText("10086");
    m_listenPort = ui->le_listenport->text();

}

SetUpWindow::~SetUpWindow()
{
    delete ui;
}


void SetUpWindow::closeEvent(QCloseEvent *event)
{
     qDebug() << "close setupWindow" << event;

     emit sig_SetupWinClose(ui->le_listenport->text());
}
